<?php

class Custom_Form_Abstract extends Zend_Form{
	
	public $_stateList = array(
		''		=>	'Select a State',
		'AL'	=>	'Alabama',
		'AK'	=>	'Alaska',
		'AZ'	=>	'Arizona',
		'AR'	=>	'Arkansas',
		'CA'	=>	'California',
		'CO'	=>	'Colorado',
		'CT'	=>	'Connecticut',
		'DE'	=>	'Delaware',
		'DC'	=>	'District Of Columbia',
		'FL'	=>	'Florida',
		'GA'	=>	'Georgia',
		'HI'	=>	'Hawaii',
		'ID'	=>	'Idaho',
		'IL'	=>	'Illinois',
		'IN'	=>	'Indiana',
		'IA'	=>	'Iowa',
		'KS'	=>	'Kansas',
		'KY'	=>	'Kentucky',
		'LA'	=>	'Louisiana',
		'ME'	=>	'Maine',
		'MD'	=>	'Maryland',
		'MA'	=>	'Massachusetts',
		'MI'	=>	'Michigan',
		'MN'	=>	'Minnesota',
		'MS'	=>	'Mississippi',
		'MO'	=>	'Missouri',
		'MT'	=>	'Montana',
		'NE'	=>	'Nebraska',
		'NV'	=>	'Nevada',
		'NH'	=>	'New Hampshire',
		'NJ'	=>	'New Jersey',
		'NM'	=>	'New Mexico',
		'NY'	=>	'New York',
		'NC'	=>	'North Carolina',
		'ND'	=>	'North Dakota',
		'OH'	=>	'Ohio',
		'OK'	=>	'Oklahoma',
		'OR'	=>	'Oregon',
		'PA'	=>	'Pennsylvania',
		'RI'	=>	'Rhode Island',
		'SC'	=>	'South Carolina',
		'SD'	=>	'South Dakota',
		'TN'	=>	'Tennessee',
		'TX'	=>	'Texas',
		'UT'	=>	'Utah',
		'VT'	=>	'Vermont',
		'VA'	=>	'Virginia',
		'WA'	=>	'Washington',
		'WV'	=>	'West Virginia',
		'WI'	=>	'Wisconsin',
		'WY'	=>	'Wyoming'
	);
	
	//try to get these values from a flat file or a database...
	public $_type = array(
				''			=>	'Select a Type',
				'home'		=>	'Home',
				'office'	=>	'Office',
				'other'		=>	'Other'
			);
	
	public $_payType = array(
				''			=>	'Select a Payment Option',
        		'check'		=>	'Check',
        		'paypal'	=>	'Paypal**',
        		'ach'		=>	'ACH'
        	);
	
	public $elementDecorators = array(
        'ViewHelper',
		array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'element')),
        array('Label', array('tag' => 'div', 'class' => 'label'))
    );
    
    public $hiddenDecorators = array(
    	'ViewHelper',
    );

    public $splHiddenDecorators = array(
    	array('Label', array('tag' => 'div', 'class' => 'label'))
    );
    
    public $buttonDecorators = array(
        'ViewHelper',
    	array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'element')),
    );
    
	public function loadDefaultDecorators()
    {
        $this->setDecorators(array(
            'FormElements',
        	 array(array('data'=>'HtmlTag'),array('tag'=>'div', 'class' => 'form')),
            'Form',
        ));
    }
}